﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SenderDetail.aspx.cs" Inherits="FX.CC.Andon.WebSite.ReportManage.SenderDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>发信明细</title>
    <script src="../lib/boot.js" type="text/javascript"></script>
</head>
<body>
    <!--撑满页面-->
    <div class="mini-fit">
        <div id="datagrid1" class="mini-datagrid" style="width: 100%; height: 100%;" idfield="MsgID"
            sizelist="[10,20,50,100]" pagesize="10" borderstyle="border:0" >
            <div property="columns">
                <div type="indexcolumn">
                </div>
                <div field="SendUser" width="120" headeralign="center" allowsort="true">
                    发信人
                </div>
                <div field="GenTime" width="120" headeralign="center" allowsort="true" dateformat="yyyy-MM-dd HH:mm:ss">
                    发信时间
                </div>
                <div field="ReceiveUser" width="120" headeralign="center" allowsort="true">
                    收信人
                </div>
                <div field="IsSign" width="120" headeralign="center" allowsort="true" renderer="onIsSignRenderer">
                    签到情况
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        mini.parse();
        var grid = mini.get("datagrid1");
        function SetData(data) {
            data = mini.clone(data);
            grid.setUrl("../service/ReportManageHandler.ashx?action=GetSenderDetailList&EventID=" + data.EventID);
            grid.load();
        }
        function onIsSignRenderer(e) {
            if (e.value == "0") { return "<span style=\"color: Red;font-weight:bold;\">暂无</span>"; }
            else if (e.value == "1") { return "<span style=\"color: Green;font-weight:bold;\">已签</span>"; }
            else { return ""; }
        }
        function CloseWindow(action) {
            if (window.CloseOwnerWindow) return window.CloseOwnerWindow(action);
            else window.close();
        }
        function close() {
            CloseWindow("close");
        }
    </script>
</body>
</html>
